﻿<%@ Page Title="Manage Building Types" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ManageBuildingTypes.aspx.cs" Inherits="WarGameAppGame.Admin.ManageBuildingTypes" %>
<asp:Content ID="ManageBuildingTypes" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView runat="server" ID="GridViewAllBuildingTypes" SelectMethod="GridViewAllBuildingTypes_GetData"
        ItemType="TeamPrasioliteWarGame.Models.Building"
        DataKeyNames="Id"
        UpdateMethod="GridViewAllBuildingTypes_UpdateItem"
        DeleteMethod="GridViewAllBuildingTypes_DeleteItem"
        CssClass="table-striped table-hover table table-bordered">
        <Columns>
            <asp:CommandField ShowEditButton="true" ShowDeleteButton="true" HeaderText="Actions"/>
        </Columns>
    </asp:GridView>
    <asp:Button Text="Insert" ID="ShowInsert" CssClass="btn btn-info" runat="server" OnClick="ShowInsert_Click" />
    <asp:Panel runat="server" ID="InsertPanel" Visible="false" CssClass="panel">
        <asp:TextBox runat="server" placeholder="Enter building type..." ID="NewBuildingType" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter building food cost..." ID="NewBuildingWoodCost" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter building iron cost..." ID="NewBuildingIronCost" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter building build time..." ID="NewBuildingBuildTime" />
        <br />
        <asp:LinkButton Text="Create" runat="server" CssClass="btn btn-warning" ID="CreateButton" OnCommand="CreateButton_Command" />
        <asp:LinkButton Text="Cancel" runat="server" CssClass="btn btn-danger" ID="CancelButton" OnCommand="CancelButton_Command" />
    </asp:Panel>
</asp:Content>
